import java.util.Calendar;

//1:一件商品生产日期是2017/7/12,保质期5年，算出失效日期
public class Work {
    public static void main(String[] args) {
        Calendar time = Calendar.getInstance();
        time.set(2017, 7 - 1, 12);
        time.add(Calendar.YEAR, 5);
        System.out.printf("失效日期：%tc%n", time.getTime());
    }
}